package com.financing.platform.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IFriendshipLinkDao;
import com.financing.platform.dao.impl.FriendshipLinkDaoImpl;
import com.financing.platform.dto.FriendshipLinkDTO;
import com.financing.platform.service.IFriendshipLinkService;

@Service("friendshipLinkService")
public class FriendshipLinkServiceImpl implements IFriendshipLinkService {
	
	@Autowired
	private IFriendshipLinkDao friendshipLinkDao;
	
	@Override
	public List<FriendshipLinkDTO> queryList(FriendshipLinkDTO friendshipLinkDTO) {
		return friendshipLinkDao.queryList(friendshipLinkDTO);
	}

	@Override
	public FriendshipLinkDTO get(Integer id) {
		return friendshipLinkDao.get(id);
	}

	@Override
	public Integer delete(Integer id) {
		return friendshipLinkDao.delete(id);
	}

	@Override
	public Integer update(FriendshipLinkDTO friendshipLinkDTO) {
		return friendshipLinkDao.update(friendshipLinkDTO);
	}

	@Override
	public Integer add(FriendshipLinkDTO friendshipLinkDTO) {
		return friendshipLinkDao.add(friendshipLinkDTO);
	}

}
